import { useEffect } from 'react'

export default function useCps(name) {
  useEffect(() => {
    console.log(`${name}运行了`)
    return () => {
      console.log(`${name}卸载了`)
    }
  }, [])
  return null
}
